package com.zhou.bpm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author: zhoujinchuan
 * @Description: TODO（流程节点对象）
 * @CreateTime: 2023/10/25 9:32
 */
@Data
@TableName(value = "bpm_node")
public class BpmNode {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.AUTO, value = "id")
    private Integer id;

    @ApiModelProperty("流程编码")
    @TableField(value = "process_code")
    private String processCode;

    @ApiModelProperty("节点编码")
    @TableField(value = "node_code")
    private String nodeCode;

    @ApiModelProperty("节点名称")
    @TableField(value = "node_name")
    private String nodeName;

    @ApiModelProperty("节点排序号")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "order_num")
    private Integer orderNum;

    @ApiModelProperty("审批类型（1-会签审批，2-抢签审批）")
    @TableField(value = "approve_type")
    private String approveType;

}

